<footer class="footerbar">

  <router-link to="/home" class="flex text-center">
     <span class="footItem" v-bind:class="{'home2':check==1,'home1':check!=1}">首页</span> 
  </router-link>

  <router-link to="/shopCar" class="flex text-center">
    <span class="footItem" v-bind:class="{'shop2':check==2,'shop1':check!=2}" style="position:relative;">
      <span class="cartNum" v-text="goodNum" v-if="goodNum>0"></span>
      <!-- <badge class="cartNum" v-text="goodNum" v-if="goodNum>0"></badge> -->
      购物车
    </span>
  </router-link>
  

  

  <router-link to="/user" class="flex text-center">
    <span class="footItem" v-bind:class="{'my2':check==3,'my1':check!=3}">我的</span>

  </router-link>
</footer>